import { Component, OnInit } from '@angular/core';
import { AuthService } from '../../shared/services/auth.service';
import { User } from 'src/app/shared/models/user';

@Component({
  selector: 'app-user',
  templateUrl: './user.component.html',
  styleUrls: ['./user.component.less']
})
export class UserComponent implements OnInit {
  user: User;
  constructor(private authService: AuthService) {
    this.user = authService.user;
  }
  logout() {
    this.authService.logout();
  }
  ngOnInit(): void {}
}
